package com.atguigu.yygh.cmn;

/**
 * @author yuanjie.Deng
 * @version 1.0
 * @date 2022/7/22 09:29
 */
public class Test {

    public static void main(String[] args) {

        String test01 = test01();
        System.out.println(test01);

    }

    public static String test01() {

        new Thread(() -> {
            try {
                test02();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }).start();

        System.out.println("1213");

        return "123";

    }

    public static void test02() throws InterruptedException {
        Thread.sleep(3000);
        System.out.println("test02");
    }
}
